<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script language="javascript" src="js/jquery-1.4.2.min.js"></script>

<title>商家列表</title>
</head>

<body>
<div id="man_zone">

  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1">
    <tr>
      <td align="right"><form id="seach" name="seach" method="get" action="">
        &nbsp;&nbsp;物流单号：
        <input name="delivery_sn" type="text" id="delivery_sn" size="15" />
        订单号：
        <input name="order_sn" type="text" id="order_sn" size="15" />
        &nbsp;
        <input type="submit" name="Submit3" value="搜索" />
      </form></td>
    </tr>
  </table>
<form method="post" action="?action=dels" name="grouplist" id="grouplist">
  <table width="99%" align="center"  border="0" cellpadding="3" cellspacing="1" class="table_style">
    <tr>
      <th width="4%">编号</th>
      <th width="9%">订单号</th>
      <th width="10%">物流单号</th>
      <th width="7%">会员帐号</th>
      <th width="13%">下单时间</th>
      <th width="6%">物流费用</th>
      <th width="8%">收货人</th>
      <th width="10%">配送方式</th>
      <th width="24%">收货地址</th>
      <th width="9%">状态</th>
    </tr>
	<?php if(is_array($dataarray)){foreach($dataarray as $value){?>
    <tr class="odd_row">
      <td align="center"><?php echo $value['iid']?></td>
      <td><?php echo $value['order_sn']?>&nbsp;</td>
      <td><?php echo $value['delivery_sn']?></td>
      <td>&nbsp;&nbsp;<?php echo $value['uname']?></td>
      <td><?php if($value['addtime']!=0)echo date("Y-m-d H:i",$value['addtime'])?></td>
      <td><?php echo $value['delivery_fee']?></td>
      <td>&nbsp;<?php echo $value['consignee']?></td>
      <td><?php echo $value['fname']?></td>
      <td><?php echo $value['address']?></td>
      <td>
	  
	  
	  <?php if($value['state']==0){?>
	  <a href="invoice_list.php?action=update&amp;iid=<?php echo $value['iid']?>"><font color="#006633">送货中</font></a>
	  |<a href="invoice_list.php?action=update&state=2&amp;iid=<?php echo $value['iid']?>"><font color="#FF0000">标记退货</a>
	  <?php }elseif($value['state']==1){?>
	  <a href="invoice_list.php?action=update&amp;iid=<?php echo $value['iid']?>"><font color="#006633">已收到</font></a>
	  |<a href="invoice_list.php?action=update&state=2&amp;iid=<?php echo $value['iid']?>"><font color="#FF0000">标记退货</a>
	  <?php }elseif($value['state']==2){ ?>
	  <a href="invoice_list.php?action=update&amp;iid=<?php echo $value['iid']?>"><font color="#FF0000">标记恢复</a>
	  <?php };?>
	   </td>
    </tr>
	<?php }}else{?>
	<tr><td colspan=10>暂无数据..............</td></tr>
	<?php };?>
  </table>
  

  <div style="width:99%;margin:0px auto;">

  
    <?php echo multi($total,$pagesize,$page,"");?>
  </div>
  </form>
</div>
</body>
</html>
